<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Fu(flag1){
            this.flag1 = flag1
        }
        function Zi(flag2){
            this.flag2 = flag2
        }
        let fu = new Fu(true)

        Zi.prototype = fu

        let zi = new Zi(false)

        console.log(zi.flag1);
        console.log(zi.flag2);
        
        
    </script>
</body>
</html>